//
//  MSRoomHousesCell.m
//  觅尚
//
//  Created by No.8 on 2019/4/25.
//  Copyright © 2019 No.8. All rights reserved.
//

#import "MSRoomHousesCell.h"

@implementation MSRoomHousesCell

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    MSRoomHousesCell * cell = [tableView dequeueReusableCellWithIdentifier:[MSRoomHousesCell ID]];
    cell = [[MSRoomHousesCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[MSRoomHousesCell ID]];
    cell.backgroundColor = backgroundcolor;
    return cell;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setMember];
        
    }
    return self;
}
- (void)setMember{
    /** 房间号*/
    self.roomNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(60 * px, 50 * px, 1000 * px, 60 * px)];
    self.roomNameLabel.textColor = [UIColor whiteColor];
    self.roomNameLabel.text = @"301";
    self.roomNameLabel.textAlignment = NSTextAlignmentLeft;
    self.roomNameLabel.font = [UIFont systemFontOfSize:SYRealValue(32 / 2)];
    [self addSubview:self.roomNameLabel];
    
    
}

- (void)setRoomHousesModel:(MSRoomHousesModel *)RoomHousesModel{
    _RoomHousesModel = RoomHousesModel;
//    WYCLog(@"=-------------%@",RoomHousesModel.roomName);
    self.roomNameLabel.text = [NSString stringWithFormat:@"空闲房间:%@",RoomHousesModel.roomName];
    
    
}
+(NSString *)ID{
    return @"cell";
}
@end
